<template>
  <div>
    <ul class="list_collection"> 
      <li class="clearfix" v-for="item in news" @click="test(item.value)">
        <p class="fl p1">{{item.text}}</p>
        <p class="fr">{{item.timeStr}}</p>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  data(){
    return{
      news:[]
    }
  },
  mounted(){
    this.newp();
  },
  methods:{
    newp(){
      this.axios.get(this.lib.config.host.system+'/portal/query')
      .then((response)=>{
        this.news=response.data[3];
      })
      .catch((error)=>{
        console.log(error);
      });
    },
    test(value){
       window.open('/Details?id=' + value);
        //  this.$router.push({path:'/Details', query:{id: value}});
      }    

  }  
}
</script>

